package com.fram.service.api.v1;

import java.util.List;

import com.fram.bean.api.user.response.UserAddressSearchResponse;
import com.fram.common.exception.ProException;
import com.fram.entity.UserReceivingAddress;

public interface UserAddressService {
	/**
	 * @作者：陳曉鬆 @时间：2020年4月30日 下午3:41:53 @版本：V1.0 @description：-> 查询用户的收货地址
	 */
	public List<UserAddressSearchResponse> selectAddressListByUserId(Long userId, Integer isDefault)
			throws ProException;

	/**
	 * 点击某个收货地址 增加
	 */
	public void insertReceivingAddress(UserReceivingAddress record) throws ProException;

	/**
	 * 准备修改 根据 某个地址的id 主键查询
	 */
	public UserReceivingAddress selectAddressById(Long id) throws ProException;

	/**
	 * 修改地址 状态 点击确认 调转到 查询
	 */
	public void updateReceivingAddress(UserReceivingAddress record) throws ProException;

	/**
	 * 删除联系地址
	 * 
	 * @param id
	 * @return
	 */
	public void deleteAddressById(Long id) throws ProException;
}
